'use strict';

const BaseController = require('./base');

class ModelController extends BaseController {
  constructor(ctx) {
    super(ctx, 'model'); // 必须传递 serviceName 参数
  }

  async userList() {
    const {service} = this.ctx;
    const {user_id} = this.ctx.query
    const list = await service[this.serviceName].userList(user_id);
    this.ctx.success(list);
  }
}
module.exports = ModelController
